<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String authcode1 = (String) session.getAttribute("authcode");
	String authcode2 =  request.getParameter("authcode");
	if(authcode2==null){
		authcode2="";
	}
	authcode1 = authcode1.toLowerCase();
	authcode2 = authcode2.toLowerCase();
	System.out.println(this.toString() + "------ authcode1 = "
			+ authcode1);
	System.out.println(this.toString() + "------ authcode2 = "
			+ authcode2);
	
	if (authcode1 != null && authcode2 != null
			&& authcode1.equals(authcode2)) {
		out.clear();
		out.print("OK");
	}else{
		out.clear();
		out.print("NO");
	}
%>
